0

I get this error when trying insert data to table. Here is my query

INSERT INTO client_requests(client_price_plan_id, request) VALUES
(
(SELECT @client_price_client_price_plans.id FROM client_price_plans 
WHERE client_id = 1),
(SELECT COUNT(client_requests.id) FROM client_requests 
JOIN client_price_plans
ON client_price_plans.client_id = 1
)+1
)

Where is my wrong. Please help me

Akashii
  • 2,251
  • 3
  • 17
  • 29

1 Answers1

4

change FROM client_requests to FROM client_requests c

ArunKumar M N
  • 1,256
  • 1
  • 10
  • 22