Questions tagged [mysql-error-1052]

Ask Question

Error 1052 - "Column '%s' in field list is ambiguous". This error appears because there are more than one identically named columns referenced in the query.

45 questions

2votes2answers307views

ON DUPLICATE KEY doesn't work with my INSERT INTO script

I have two tables. One is permission_index and the other is permission_index_bkp. My script is supposed to transfer some rows and data from permission_index to permission_index_bkp. However, I don't ... user avatar Hilas

  • 61
0votes1answer481views

Column 'department_id' in where clause is ambiguous

I got error on my page like the title above. I am trying to export an Excel with the Laravel Excel extension. Here is my code: public function query() { $test = Leave::query() ... user avatar Maria

  • 13
-1votes2answers151views

#1052 - Column 'bookingId' in where clause is ambiguous

I want to join to two table but I got a problem Here is my SQL syntax select * from booking as b, booking_detail as bd WHERE bookingId = 9 AND b.bookingId = bd.bookingId Here is I got error: # 1052 ... user avatar user9468951 0 votes 2 answers 442 views

Column 'date_start' in where clause is ambiguous

I wanna SELECT some date, but i have problem with this SELECT DISTINCT `clients_agreements`.`date_start` , `buildings`.`id` , `buildings`.`street` , `buildings`.`street_nr` , `clients`.`... user avatar JustNone

  • 15
0votes1answer582views

#1052 - Column 'date' in field list is ambiguous

update callingroute AS t1 INNER JOIN callingroute AS t2 SET t1.day = (select date FROM (select dayname(date) from callingroute where status = 'OK')AS X) WHERE t1.calling_route_id IS ... user avatar Pravesh

  • 25
0votes2answers361views

MySQL 'tahun_pemilihan' in where clause is ambigous

How can I correct the problem I keep getting from the code below which states 'tahun_pemilihan' in where the clause is ambiguous. Thanks for the help in advance. here is the MySQL table $sql = "... user avatar Nazarudin

  • 589
-1votes1answer154views

Error 1052: Column 'metric_name' in where clause is ambiguous

SELECT b.target_host AS 'host', a.target_ip AS 'Target', a.monitor_type AS 'Type Monitor', ... user avatar Alvianno Wijaya

  • 1
0votes2answers247views

Column 'size' in field list is ambiguous

Invalid SQL: SELECT info_hash, size, comment, created_by, announce_list, completed_by, completed, seeders, leechers, ulspeed, dlspeed, dateline, thumbnail_dateline, filename, ... user avatar Film Buzz

  • 1
4votes1answer10kviews

Laravel relationship Column 'id' in where clause is ambiguous

I have courses and subscription types. I want to get all the courses that has a given subscription type. My attempt: $courses=Course::wherehas('subscriptionType',function ($q) { ... user avatar user3844579

  • 475
4votes1answer10kviews

Mysql error: violation: 1052 Column 'created_at' in where clause is ambiguous'

I am getting the issue: Integrity constraint violation: 1052 Column 'created_at' in where clause is ambiguous but the table sales_flat_order_grid have created_at Column SELECT DISTINCT main_table.*, ... user avatar Amit Bera

  • 7,514
1vote2answers2kviews

MySQL query: How to fix Error 1052 (ambiguous column)

I keep getting an error when I run both of the following queries that the CUST_NUM is ambiguous. How can I fix this? SELECT INV_NUM, CUST_NUM, CUST_LNAME, CUST_FNAME, INV_DATE, INV_AMOUNT FROM ... user avatar Abby Schukei

  • 45
1vote1answer150views

ambiguous error in mysql recordset in Dreamweaver

The following recordset in Dreamweaver throws a 1052 ambiguous error every time I attempt to test it. I know it has something to do with the dateADDED, but don't know how to fix it. SELECT ... user avatar Mike

  • 31
0votes1answer877views

Error Code: 1052 when INSERTing (ID in field list is ambiguous)

I am being thrown a really weird error code, judging that I have successfully INSERTed values using the same query in a similar schema. I am trying to execute the following query: INSERT INTO ... user avatar mmmarius

  • 15
1vote4answers253views

#1052 - Column 'noMyKid' in where clause is ambiguous

SELECT *, DATEDIFF(CURDATE(),tarikhmohon) AS hari FROM mohon a INNER JOIN tblstatus_tak_lengkap b on a.noMyKid=b.nomykid WHERE noMyKid=130902100437 I have tried that SQL but I got an error. #1052 -... user avatar user3487681

  • 149
11votes1answer64kviews

Column 'id' in where clause is ambiguous

I get this error and I can't figure out why? Error Number: 1052 Column 'id' in where clause is ambiguous SELECT `leads`.*, `customers`.`id` AS customers_id, `customers`.`name` AS ... user avatar Casperlarsen

  • 131

153050per page

1 2 3

You Might Also Like