R
R
run1822015-04-07 22:18:31
MySQL
run182, 2015-04-07 22:18:31

Why is the request not being fulfilled?

$criteria->join = 'LEFT JOIN r_users ON r_users.email = r_payments.LABEL';

Returns error:
CDbCommand failed to execute SQL query: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'r_payments.label' in 'on clause' Please tell me
where the error might be. Table and column names are correct.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
vyachin, 2015-04-08
@run182

There is not much information, but I can assume that this should help

$criteria->join = 'LEFT JOIN r_users ON r_users.email = t.LABEL';

M
Maxim Grechushnikov, 2015-04-07
@maxyc_webber

CDbCommand failed to execute SQL query: SQLSTATE[42S22]: Unknown field: 1054 Unknown column 'r_payments.label' in condition

R
Roman Frank, 2015-04-08
@Akellacom

There is no label column in the r_payments table

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question